﻿BoxSportSystem.pagosDetails = (function () {
    var viewModel = kendo.observable({
        pagos: {},
        proveedor:{}
    });

    function onShow(e) {
        var id = e.view.params.idPago;

        
        $.ajax({
            url: BoxSportSystem.config.urlServicePagos + "/" + id,
            dataType: "json",
            success: function (data) {
                viewModel.set("pagos", data);
            }
        });
    }

    return {
        viewModel: viewModel,
        onShow:onShow
        
    };
})(window);